package org.jeecg.modules.business.doc.business.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.business.doc.business.entity.WmsInReceiptMaterial;
import org.jeecg.modules.flow.sys.entity.dto.SecondBoxDto;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: 入库单
 * @Author: jeecg-boot
 * @Date: 2023-07-31
 * @Version: V1.0
 */
@Data
@ApiModel(value = "wms_in_receiptPage对象", description = "入库单")
public class WmsInReceiptPage extends SecondBoxDto {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 组织
     */
    @Excel(name = "组织", width = 15)
    @ApiModelProperty(value = "组织")
    private String organization;
    /**
     * 单据类型
     */
    @Excel(name = "单据类型", width = 15, dicCode = "document_type")
    @Dict(dicCode = "document_type")
    @ApiModelProperty(value = "单据类型")
    private String documentType;
    /**
     * 单据编号
     */
    @Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private String documentCode;
    /**
     * 业务日期
     */
    @Excel(name = "业务日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "业务日期")
    private Date businessDate;
    /**
     * 货主类型
     */
    @Excel(name = "货主类型", width = 15, dicCode = "wms_owner_of_cargo")
    @Dict(dicCode = "wms_owner_of_cargo")
    @ApiModelProperty(value = "货主类型")
    private String ownerType;
    /**
     * 入库日期
     */
    @Excel(name = "入库日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "入库日期")
    private Date warehousingDate;
    /**
     * 是否初始化单据（0否1是）
     */
    @ApiModelProperty(value = "是否初始化单据（0否1是）")
    private String isInitialized;
    /**
     * 货主
     */
    @Excel(name = "货主", width = 15)
    @ApiModelProperty(value = "货主")
    private String owner;
    /**
     * 库存方向
     */
    @Excel(name = "库存方向", width = 15)
    @ApiModelProperty(value = "库存方向")
    private String warehouseDirection;
    /**
     * 部门
     */
    @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "部门")
    private String sysOrgCode;
    /**
     * 客户
     */
    @Excel(name = "客户", width = 15, dictTable = "wms_basic_customer", dicText = "name", dicCode = "id")
    @Dict(dictTable = "wms_basic_customer", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "客户")
    private String wmsBasicSupplierId;
    /**
     * 供应商
     */
    @Excel(name = "供应商", width = 15, dictTable = "wms_basic_supplier", dicText = "code", dicCode = "id")
    @Dict(dictTable = "wms_basic_supplier", dicText = "code", dicCode = "id")
    @ApiModelProperty(value = "供应商")
    private String supplier;
    /**
     * 单据状态
     */
    @Excel(name = "单据状态", width = 15,dicCode = "document_status")
    @ApiModelProperty(value = "单据状态")
    private String documentStatus;
    /**
     * 仓库组
     */
    @Excel(name = "仓库组", width = 15, dictTable = "wms_basic_warehouse_group",dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "仓库组id")
    @Dict(dictTable = "wms_basic_warehouse_group", dicText = "name", dicCode = "id")
    private String wmsBasicWarehouseGroupId;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**
     * 仓管员
     */
    @Excel(name = "仓管员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "仓管员")
    private String warehouseKeeper;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ExcelCollection(name = "入库单-物料")
    @ApiModelProperty(value = "入库单-物料")
    private List<WmsInReceiptMaterial> wmsInReceiptMaterialList;

    @ApiModelProperty("物料id")
    private String wmsBasicMaterialId;

    @ApiModelProperty(value = "入库凭证")
    private String voucher;

    @ApiModelProperty(value = "入库任务id")
    private String wmsInReceiptTaskId;
    @ApiModelProperty(value = "有无子级")
    private Integer hasChild;
    //是否提交任务,用于backCommit
    private Integer isBackCommit;
    @ApiModelProperty(value = "载具编号")
    private String vehicleCode;
    @ApiModelProperty(value = "来源系统")
    private String originalSystem;
    @ApiModelProperty(value = "请求人员")
    private String requestPerson;
    @ApiModelProperty(value = "请求时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date requestTime;
    @ApiModelProperty(value = "来源单据")
    private String originalSystemNumber;
    @ApiModelProperty(value = "对应入库任务明细id")
    private String wmsInReceiptTaskMaterialId;

    @ApiModelProperty(value = "生产订单号")
    private String productOrderNumber;

    @ApiModelProperty(value = "栈板号/托盘码")
    private String stackNumber;
}
